package com.example.coupon.entity;

import com.example.coupon.controller.vo.ActivityVO;

public class ActivityEntity {

    private Long id;

    private String name;

    private Integer status;

    private String startTime;

    private String endTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public static ActivityEntity transferToEntity(ActivityVO activityVO){
        ActivityEntity activityEntity = new ActivityEntity();
        activityEntity.setName(activityVO.getName());
        activityEntity.setStartTime(activityVO.getStartTime());
        activityEntity.setEndTime(activityVO.getEndTime());
        return activityEntity;
    }
}